Will alarm work on iPhone if headphones are plugged in?

My phone is on headphone mode because a part of my headphone jack is stuck in my iPhone. So i can't hear anything unless it is on the speaker. School starts tomorrow and i was wondering if the alarm will work on my speakers, or if no sound will come?

Added (1). I have an iPhone 4

I'm not absolutely possitive about this, but i think it will only vibrate and the sound will go in the headphone. So what i suggest is to set an alarm right now that will ring in like 5 minutes, and see what it does. If you can't hear it, then put it next to your head so the vibration will wake you up. If that doesn't work, steal one of your family members phones and put the alarm on that