Is this a boundary?

I gave my husband a boundary. If you drink in our home, I will go stay in a hotel. I did this because when he drinks he says and does crude things and I choose not to be around that.
I thought I did this from a place of love. I felt good about it, didn’t feel angry. But now I’m questioning if my boundary is in fact, manipulative. I just know he won’t drink at home now knowing that I will enforce this boundary because it will make him feel like a real douche bag to make me go spend money on a hotel room. Thoughts?