My saas always makes sure the custard is served at room temperature so I don't catch a cold. It's safe to eat, just make sure any fruits you add are washed properly.
I ate fruit custard throughout my pregnancy for a quick energy boost. Just ensure the eggs (if any) are fully cooked, or stick to the eggless custard powder.