It'll affect your future marriage the more you dwell on this as a possible problem.
Otherwise, the only event that this would be a problem, is if your wife does not approve of the idea of you masturbating (some people are less secure and take that as a sign of you aren't attracted to them), or if your sexual life with her is affected. By your sexual life being affected, I meant in the event that you prefer masturbating over sex with your wife, or have done it so often that you do not have the drive to want to do it with her. That is when this would be a problem.
Otherwise, no sir, it does not have to be a problem. A wise woman knows that she isn't around 24/7 to help you with your sudden lustful moments and should understand that you may need to help yourself.
Good luck!