Hello. My name is Michael. I can help you with your question.
You will likely have to do a reset to bypass the lock. But before doing that, you can see if your contacts are synced by going to
Log into your google account and check there.
If they are not there, they may be synced with your samsung account.