Can you get infections from masturbating?

Generally NO. With normal hygiene one should not get an infection due to masturbatory practices. If you are male, it would be very difficult unless you were using some very unusual technique. If you are female, then it may be easier if you are manipulating the urethral opening or have very vigorous masturbation and again depending on how you are masturbating. If you have a concern for infection, see pcp.