No, this only hides it visually, you still run into the issue of content being hidden behind it. I now use bartender which allows me to at least put the tray icons in a dropdown that opens below the nodge.
But the fact this is necessary speaks volumes about Apples care for user experience
Kotlin has not, and, and or utility functions as well