Do you ever take old antibiotics?

My bf and I had sex today, and I wiped myself beforehand and peed afterwards (altho not a lot of pee came out, only a little), and then I got up to pee again a little later. I don’t think UTIs can develop in less than 12 hours but I was scared, so I took a leftover antibiotic from the last time I had a UTI (which was 2 months ago).

I know you’re supposed to take all your meds in one round, but I forgot one last time. It’s not like I was saving it for this moment.

I know you’re also not supposed to take left over meds (in case you need a diff. one) but I get the same prescription any time this happens, and I feel like this pill might’ve knocked out any tiny chance of me having a UTI. It gave me hope.

Is this bad?

Also does planned parent hood prescribe antibiotics for less than the emergency room does?