I guess you could, but it wouldn't do anything except maybe damage the environment/leave a trail to follow. When combat starts, you'd roll initiative and have a regular turn. There is no defined benefit to using a cantrip as an exploration tactic leading into combat, so there is no benefit.