Pumping question

So can I be pumping through out the night put it in the same bottle since I don't get a lot out & give it to my little one around 2pm?
Or after getting enough milk out I have to put it in the fridge for it to be good by 2pm?