in general true, I even used a photo in my phone once when my passport was out for an extension. But can be tricky and uncomfortable trying that without one.
Anonymous participant yeah I realized you should get it back tomorrow but figured I'd leave a comment anyway in case someone else gets stuck like that without a passport.