You can use your phone as your alarm clock as long as you remember to keep it charged enough to last a night. Alarm clocks ultimately make for better options, though, because they're plugged in with backup batteries, so you never oversleep. Additionally, using your phone as your alarm keeps it close to the bed, which may tempt you to use it late at night. If you prioritize your sleep quality, go with an alarm clock.