Question on chlamydia....

I had my annual done at the doctor and she just called me telling me it came back positive for chlamydia. Me and my partner has been together for a year, so can you have the infection for a while and just find out about it or how does that work?