Yes but why not just always use 24h time (or 12h if that’s what you like).
It’s a little strange that a dedicated button would be needed to switch between them, especially when the math to convert between them is so simple.