Would you be mad?

Would you be mad if you and your bf had a baby together and he has a job where he can’t smoke marijuana but he decides to go and try a piece of a weed brownie knowing there’s a possibility of him getting a random drug test at work? Wouldn’t you feel betrayed feel like he’s selfish etc?