Is it ok to keep primers at 4 degrees?
There is absolutely no problem here. Primers will degrade only very slowly at 4 degrees and even at room temperature leaving them out overnight would not degrade them enough to be of practical consequence. In fact, if you're using them today it's probably better to have stored them at 4 degrees than -20 because repeated freeze/thaw cycles will also degrade primers.