Yes, as long as you begin and end the flight under the same rule set, you’re fine to use either.
FAA Drone Training & Part 107 Test Prep
More than 50,000+ students trust Drone Pilot Ground School, a training program managed by UAV Coach, the largest and most reputable online-based drone training academy in the sUAS industry.