That is absolutely fine. Please do only two or three repetitions. Reduce the speed, and make sure you do it slowly, while keeping the alignment of your knees and toes.
Try not to use your shoulders or lean forward too much when getting up. The clarity of movement is more important than the number of repetitions. If you are holding onto a table in front of you or are using a chair next to you, make sure your shoulders are pulled down and arm pit activated when you are getting up.
You can alternately skip this exercise completely and try again after a few weeks when your legs are stronger.
Let me know if you have any questions