Only in the sense that if eating, getting fat, being fat, loving fat, fattening others etc. arouses you it stands to reason that you will masturbate more. At least that's the case for me.
You have to wank to get rid of excess testosterone. Keeping that stuff in your body would mean you'd be much more active, aggressive and muscular. Keeping testosterone low increases the hormone ratio towards oestrogen which makes you soft and fat.
You can increase oestrogen by eating peanut butter, especially the one with flax seed in it.