Most certainly, especially if the opponent's queen is a pest.
It is also advantageous when your other pieces and pawn structure are in better positions than your opponent.
Remember: as more pieces are removed from the board, the relative value of each remaining piece is increased. You can see how important the king becomes offensively in late game.
K thx