It can work
I met my wife while we were both college, we wound up getting married a few years later while both of us were pilots in the military...that was a challenge.
We are both out and working for Fedex and UPS and life is much better now. It is a tough choice to make esp. while you are still in school. There will be many complications that does not apply to a single pilot family... kids, etc.
I would not rush into anything, we waited almost 7 years.
Good luck