Can taking antibiotics cause frequent urination nearing the end?

Not usually. Without knowing what is being treated and the antibiotic you are taking it is impossible to answer your question intelligently. But generally speaking this does not happen.