Yes, you can export your Mac password by going to the Apple menu > System Preferences > Passwords. Authenticate using your Mac’s password, then click the three dots in a circle (you'll find it in the lower-right corner). Choose Export Passwords…, confirm, select your location, then click Save.