It’s definitely possible, I’ve set up a proxy like that in the past (though it was to Netlify instead of Ghost) -