Is sex a good way to relieve stresss?

Yes,temporarily. Inappropriate sex with a person can actually increase stress if it involves disease risky behaviour, felonious sex, or sex to the exclusion of daily activities(addiction). Ohterwise, yes, sex can temporarily relieve stress.