Only if you’re incompetent. Otherwise just not optimal.
Starsector, Rise to Ruins and Project Zomboid run well and are made in Java for example. It’s harder to pull off but it can be done. (still needs native libraries though)
Only bad thing really about it is Denuvo (properly implemented it doesn’t make the game run like garbage, but I still like to run my game whenever I want without online verification and excessive load times). I might buy it when it’s DRM free on GOG and discounted.
Also key activations cost the dev zero on Steam. And the dev can generate keys for free to sell elsewhere. details here: partner.steamgames.com/doc/features/keys