Yes, if food-safe colouring has been used and the hard-boiled eggs have been stored safely then yes they can be eaten.