It’s very common for beginners to swing the bar out in front in the snatch pull. I used to do this myself.
This is not good technique as it will pull you forward, and you’ll either miss the lift or be limited in how much you can snatch.
But don’t worry, this habit can be fixed. Try these drills and exercises; they worked for me and they can work for you too.