Welcome to the forum!
It can be done that way, but my advice would be to to to a hardware store, pick up about $12 worth of part (or $20 with inflation) and rig yourself a nifty little contraption that makes the process super easy and something you can do by yourself. My boat came with that, thanks to a previous owner, and I've enjoyed it as long as I've had the boat. In fact, I've used it so much that I've rebuilt it twice over the years when it started to look a bit down at heel.
I wrote down the details, and it doesn't take a genius to put one of them together.
I experimented with an additional gizmo that would further assist someone with back problems or not enough strength, and it is also described there. However, I found that as long as I keep sailing I'm keeping enough strength to raise the mast with just the simple contraption that the boat came with from the previous owner. So that extra apparatus is totally optional, reducing your effort in putting things together. Go have a look.
The video shows the creator's alternate design for an assistive device. I think it falls in between the two I am describing. It gets installed and dismantled, which takes time (the key part of mine remains permanently installed and takes no time in rigging, and is usable by itself. In contrast, the optional part I describe would take extra time).
On key difference is that the device in the video does not require pushing the mast up. Instead you use your weight to pull it down. I can see how this might be an advantage for someone with a bit shorter reach. But it requires more force and effort than my system with the optional addition.
So, take your pick. There's also a completely manual (unassisted) procedure that is documented here on the forum and can be found via following the link above. That one is only recommended for a crew of two people, at least I would not attempt that by myself. I've used something similar on smaller boats with slightly lighter masts.
Good luck. Let us know how you are doing.