There are two views on this.
1. You can change the past.
Then it is unlikely that you will get the same lottery numbers once you travelled back. For example, when you travelled back and want to go get a lottery ticket, you will encounter some people. By your presence, you will change their behavior at least slightly, like they wait 0.5 seconds to let you pass by, or they look at you for 0.1 seconds. Since they changed their behavior, the people encountering them will change their behavior in just the same way that you changed the behavoir of your first encounters, and so forth. You have caused a chain reaction of changes that first spreads at the speed of pedestrians, then at the speed of cars (as car drivers will be affected as well), and finally at the speed of planes. In the end, the person preparing the lottery machine will have been affected by this wave of changes as well, so the lottery machine will be prepared in a slightly different way, resulting in different numbers to be picked.
2. You cannot change the past.
Then you might be able to travel back in time, but you cannot change events since you have been part of those events all along. You could not assassinate a dictator, for instance. Something would always prevent you from doing that. It must be so because if you succeeded in killing the dictator, then the dictator would be dead, so you would not travel back to kill him, so he would stay alive - a contradiction. As for the lottery, the same numbers would be picked. But it would not be you to win the lottery but the same person who won the lottery in the first place. Something will keep you from winning the lottery, even when you know the numbers in advance. Whatever you try, you'll get arrested, or your time machine will crash, or you will just sleep late.
Either way, winning the lottery by travelling back in time is unlikely to work.