It’s very possible if you make small hints and lead up to it. Video games do this often and it works for the most part. Some do it for plot twists with villain introductions. So yeah, it can work as long as there is some form of conflict along the way to keep things interesting.
If writing villains is your worry then take a look at villains that you like in others stories (movies, shows, comics) and see what they do. Most villains are always “100% evil. Take over the entire world for fun,” mentality. Normally there’s something that makes them relatable such as bad past, care for family still, doing bad to save someone, and so on.
So don’t over think it! Just take it slow if you need to.