There are no laws to stop a boss from having an office romance with a subordinate, but the imbalance of power in the relationship matters when it comes to whether the relationship is consensual or not.
https://www.thestar.com/news/gta/2023/02/12/imbalance-of-power-is-ethical-issue-experts-say-after-john-tory-revelation.html