Was it cheating?

Okay so me and my boyfriend took a break. The next day I had sex with another guy. I told my boyfriend immediately and he understood. My boyfriend was the only guy I had ever had sex with and I guess I wanted to explore. I hated it and regret it but was it cheating?