If you got appendicitis, does that mean that you had poor eating habits?

Just bad luck. The cause of appendicitis is not really known. Often there are small hard deposits of stool (called fecaliths) in the appendix when it becomes inflamed. There is no evidence that poor eating habits are associated with appendicitis.
No. No clear association but it is slightly common with ingestion of processed and refined food.