It is perfectly possible to do both.
You don't have to use something like Electron or even Qt to make cross platform apps or games.