Yes this is quite possible and HIV
is one of the examples. Though it is not very common. Most of the STIs which are bacterial, fungal or protozoal are self resolving or they come with symptoms. Viral STIs have a long symptom free course. eg Warts
, HIV etc.