Its a leading question and not specific enough for a simple yes or no. A person might want to be forgiven but they also might not have any intent to try not to sin again.
To be forgiven you must make a genuinely sincere Confession (confessing all the mortal sins you can remember) being sorry for your sins and with the firm intent to do your best not to sin again.