Open Question: can you go straight from your BSN to your MSN for nursing?

Or do you have to work as a nurse for some time before you can apply to grad school to get your masters in Nursing? I'm accepted to nursing school to get my BSN, but ultimately I want to be a Nurse Practitioner, can I apply directly into MSN programs?