It’s fine to fill screw holes and other minor wall dings with patching compound, but for dime-size and larger drywall repairs ...
Patches made with traditional patching materials need to be primed with a sealing-type primer before painting. Otherwise the patched areas could show through the finished paint job as foggy spots.