Yes, you can paint your engine block's lifter valley. It's fine as long as you make the proper preparations beforehand to avoid causing damage.
Good paint care is simple in concept and annoying in practice: keep dirt from grinding into the clear coat, keep contaminants ...