Probably.
Without seeing it and the tyre its going in its hard to be 100% sure.
This is due to different makers measuring and marking their tubes inconsistent with each other, e.g. I have one marked 700x 19/23 that is wider than another that's marked 700x 19/25.
Having said that, If the new tube is a little wider it will be fine, but be sure to be extra careful when you ease it in