Yep! Your spell triggered the surprise round, which is the round where the spell will be in effect. I think two full rounds of shooting at basically unarmed, unarmored, flat footed goblins is a good use of a 1st level spell.