Is overspray on cylinder head ok?

Just rolled in on YT, had a segment on just this. Someone painted the heads and valley with paint.
It all flaked loose, clogged the pickup, locked the engine. :rolleyes: