Boyfriend & cocaine

Guys! Okay so my boyfriend and I were just talking on the phone and he’s like yeah so I tried coke yesterday before going to the gym... and i freaked out at him like I got pissed and i was like are you fucking stupid why would you do that and we kinda had a small fight and he’s like I didn’t know you’d react like that.... and it got me thinking, was I overreacting by freaking out at him? I understand weed and stuff I just don’t think it’s safe to be doing coke especially before the gym. Girls did I overreact? What would you have done?!