Yes. Citric acid is a natural substance and very few people are allergic to it. It is quite sour and might cause stomach discomfort if consumed in large quantities, but most candy recipes call for very small amounts that should be harmless to almost everyone. Getting citric acid in your eyes may cause eye irritation, so use caution when handling it.