I suppose the tube stretching to fill a 700x45 tire will make it thinner, and ever so slightly more likely to be punctured, but the difference is negligible. I'm not saying you can throw a 700x23 tube in a 700x50 tire, but the tube and tire do not have to be the exact same width to work.