Can appendicitis caise pain near ribs?

Yes, because. Appendicitis has manifestations that are "protean", meaning that it can cause all sorts of symptoms. Only your doctor can tell, and sometimes it is impossible to tell without special tests. And sometimes you need to have your appendix removed just to make sure. Go and see a doctor for more details and definitive diagnosis and treatment.