I'm not sure if they can get you it the same day but I think they can if you go really early in the day usually they can get you a passport within a few days of your flight date and even the day before but I would call them to see if it can be processed so quickly.
You should probably call and ask fir yourself.
if you go early in the morning they will give it to you. they will give you a waiting it takes about 2 hours to be done so go early in the morning if you don't have an appointment still go. they will send you to will call to get an appointment. you will get it the same day. Make sure you have proof of citizenship ds-11 application and in two forms of ID and then you have to show your itinerary.
Thanks! Your answer is awaiting moderation.