No, it is a macrolide class antibiotic, related to erythromycin. Penicillins are part of a larger, more general class known as beta-lactams, named from the chemical ring structure that accounts for its active moiety.
It would depend on what was wrong with you, as there are many types of anti-biotics, and some are approptiate for some bacterial infections but not others.