You would need to refrigerate the wort and it would probably be ok.
4-5 days at room temp… well, you would be asking for trouble.
I routinely refrigerate a half gallon of wort 7-10 days in a mason jar. This is from the first pour after boiling a regular sized batch. I use the saved wort...