Yes, that can work if you manage to get three or more satellites in the
line of sight at the same time. If you have 4 or more in sight, you can also
get the accurate location and altitude information.
While a GPS positioning fix necessarily depends on receiving signals from multiple GPS satellites, to get the right time you only need one.