Yes, but you can’t do that without a password manager compatible with both operating systems. Therefore, you must pick a good password manager compatible across all platforms, so you can sync your passwords across devices.
You should also choose a password manager that provides exceptional security features, such as dark web monitoring, data breach test, etc. 1Password is my go-to password manager, and it's compatible with both macOS and Windows.  I highly recommend you.