No, masturbating does not cause someone to lose their virginity. Virginity is often considered in terms of having sexual intercourse with another person, not if someone is masturbating alone.