Mexican antibiotics

Contracted a uti while here in mexico with husbands family, started peeing blood seen a doctor here and was given ampicillina 500mg, did a little googling and it says it's ampicillin which is an antibiotic but still scared that this wont work as great as antibiotics in the US... any thoughts?!