Celibacy is one of the many principles of Brahmacharya.
It has more to do with thoughts than our actions
If we follow celibacy but have some bad intent in our mind, then it’s not Brahmacharya too.
Shiva is always in a state of Brahmacharya even when Shiva & Shakti stays together.