Can I save text messages on my Iphone so that they're saved and readable on my Macbook?

I want to ditch my Iphone and get a Google Pixel but I there are text messages I have on my Iphone that I want to keep.

Is there anyway of doing this?

I think

In your MacBook, locate the "Messages" app. Activate it. Set your AppleID up to use your email address and not the phone number.