I do it quite frequently. I cool my wort to below 100F, place it in a clean and sanitized bucket (with clean, sanitized, well-sealing lid), then store in the fridge. If I'm going to brew more than 3 days after mash, I'll freeze instead.
As long as you have sanitation under control, and room to store it, you can do it.