Can occasional pain in both sides of my ribs be a sign of pregnancy?

Not common symptoms. Rib pain is not a common symptom of early pregnancy. More commonly, it's missing period, nausea...If you are worried about pregnancy, get tested, either over the counter kit or see your physician.
Unlikely . Usually pregnancy would present as missed period , nausea , breast tenderness .