I think it's fine, as long as you take the right measures. From that point on, it's up to you if you do it with someone you've met at a bar or with someone you've been going out for 2 years. Personally, I'd wait til I felt safe and confident engouh in a relationship, but that's just me and I respect whoever wants to have casual sex. It's their problem.