It ultimately depends on how mature the 2 people are about it.
Agreed. Maturity is the key to any relationship. Be honest and upfront. When you're not, THAT's when you pay the consequences. And that of course WILL mean your job. Pretty much gotta weigh what's more valuable and what you don't want to lose: your job or your relationship with her. If she's awesome, a relationship may be worth the risk. But yeah, it's a risk.