samsung s6 egde pattren password forgetten ??

the fone has version 6 can i reset it without data loss ??