Obviously the risk of this is significantly higher than just renting.
If you have your first job and therefore little to no liquid cash, and then on top of that you require tenants to make your mortgage, you're in a pretty risky position.
That means that if just about anything goes wrong you can be absolutely fucked.