It is a matter of perspective on whether or not you can go evil in Hogwarts Legacy. If you consider using the three unforgivable curses evil, then that is a yes. But otherwise, no, you don’t become evil in this game. Though you do get an option for the ending of the game, I still wouldn’t consider it evil by any means.