I don't know about masterbation, but likely yes with masturbation. Some cultures -- especially those ruled by religious wackos (think of religions based in Italy, the Middle East, the southern United States, and many more) put a great premium on female virginity.
That is such a big deal that there is a thriving business in Brazil, and now elsewhere in the word for "hymen repair".
If the fingers or a tool are used externally, no problem. But if a foot-long vibrating dildo has gone where no man has gone before, then the INDICATION of virginity would be tampered with, whether the women is technically a virgin or not.
How is the husband expecting an untouched flower to know if some other guy has beat him to the bush, or if his bride-to-be is just a fan of pocket rockets?