Gifting one of your provinces to the Pope while it is under siege by another Catholic faction?

I'm thinking of giving it a try when I get home. Will it work?