Refrigerated bottle

Is it ok to take a breast milk bottle from the fridge and just leave it on the counter until baby wants to eat again? Specifically like right before bed, then use it over night as baby gets hungry.