Can membership unpublish a post when a subscription expires?

I was wondering if there might be a way to automatically unpublish a post when the post's author's membership subscription expires?

Perhaps using pings?