I have polycystic ovary syndrome and recently had unprotected sex for the first time. Could I have gotten pregnant?

Yes. On occasion a woman with pcos can ovulate irregularly. If intercourse occurs prior to one of these irregular ovulation situations then a potential pregnancy can occur.
Of course. Anyone of reproductive age who has unprotected intercourse has the capacity to conceive.