Am i wrong for doing this? :'(

I have a supper jealous boyfriend who doesnt trust me. Today i went inside the class and i didnt see him i didnt know he was there so i sat on a desk way on front, next to me there was a guy which my bf doesnt like for no reason i didnt inow he was serious about saying hes gonna beat him up cus honestly he doesnt know that guy. So the guy told me if i needed help he had the answers and i said yeah sure and got his paper and copied and then gave it back , he actually gave the answers to 2 other girls. So then i went to the restroom and came back and i saw my boyfriend there he didnt say anything he just looked at me ,i knew he was mad. So i smiled and sat and me and the guy didnt talk bevause i dont know him either. We went to the next period and my bf came up to me and was like 'go your own way with life you bitch " i told him to fuck off so like the last periods he was all calling me a bitch and how he was always there for me and stuff. When we got out he went after me telling your takin me to my house, i was like no i dont want to fight and he was like im telling you im not askin you and i told him leave me alone , he followed me to my car and i was like im not takin you anf he was like whats your fucking problem bitch and i was like whats your problem talkin to me like that and i wss trying to get in the car and he wouldnt let me he was telling me off like an inch away from me so i started pushing him and screaming to leave me alone and then i got in the car and he told me why am my mak8ng a show and i was like pls leave , i was already crying and he was like youre alone now you bitch and slammed my door and left. I dont know what happened im so sad i think maybe he had a right to ne mad and i overrravted help ;/