Inverts - yes
Coral - with caution
They're generally considered "reef safe" - meaning they will not harm corals and inverts but some have reported seeing them pick at some corals.
I don't have any experience with pygmy angelfish but that is what I've read and heard.
Miles