Mood swing, depressed etc ; sex

I was upset yesterday until I had sex and I felt so relaxed after and still do, this might sound stupid but I’m fr calm as ever and feel fine, I’m not having mood swings and I not thinking about the things that make me depressed.