Has been done many times, and, as has been said before, you have something to fall back on if the flying doesn't work out.
BA have a pilot who is a qualified anaesthetist. A female F/O with Virgin was a surgeon before learning to fly and is now an AME as well as being a pilot.
Go for it.
Dave