That generally does not work out. You can do the online course at your own pace. For learning to fly, breaks in the training generally make the process take much longer. It will also cost you more, as our cost for scheduling and gear reservation are much higher. We do have some options. so you really need to discuss this with the CFI.