Yes of course, I handed my thesis in days before the deadline, like pretty much everybody I know.
Think about it this way: you still have 3 months after submission before the viva, and then you will likely have 3 more months after the viva for minor revision. So you could still be working on your thesis for a further 6 months before its really done.