Yes, it works just fine when you are stating out. Still, I think the Canon M50 is overall the better camera. Better EVF, better interface, comparable lenses at comparable prices, flippy screen, better out of camera JPEGs.
I am a huge fan of Sony mirrorless, I love my a6500 to death and it has served me well. But Sony's offering at this price point isn't really competitive.
My real recommendation would be a used or new X-T20 from Fuji. It has the best kit lens of the three, the best available lenses, the best out of camera JPEG quality, the best controls, and consistent firmware updates from Fuji (for now). It is a little harder to pick up at first, but there is a really handy "full auto" switch that overrides basically everything when you need it.