As long as it exports to the web, so the game can be played in a browser without downloading anything, then yes.
So even Unity and Godot are allowed because they export to HTML5?
Yes.