Yes log into your Samsung account and lock the phone it will ask for a password and set the new password up yu cN also retrieve all data this way to.
If you have forgotten the details of your lock screen settings, such as your PIN or pattern, you can reset it by enabling the Unlock my device...