Code is just text files. You could write Unreal engine code in anything that can write text - even your phone's SMS app if you wanted, but the workflow would be a nightmare.
Especially as you're first learning game development, you're going to make a lot of mistakes, and being unable to test your work, experiment, and observe the results without waiting on your partner will slow your learning down drastically (and impact their productivity, and possibly strain your working relationship too).
I'd recommend that you choose a different engine or framework for your first game - something your system can run. Possibly Unity or Godot, or even web game frameworks that run anywhere you can use a browser. You'll learn much faster when you can test your work in a tight iteration loop, and the fundamentals you learn about how to approach game development will be portable between engines.
If you later take on an Unreal project, it will go much smoother once you've built up experience coding in another engine, so you can anticipate many of the problems and troubleshoot others more effectively, helping to compensate for the slower iteration time if you still need to borrow someone else's system to test.