Can you execute your ready action in the same turn it was readied? [duplicate]

Is it possible for a spellcaster to ready a fireball when he is out of view, move into line of sight and release it in the same turn , without giving the opposing spellcaster the chance to counterspell it since he didn’t see it being cast?