It took me a solid 6 months from "never worked out a day in my life" to "can do a pullup".
I started just hanging from the bar, then moved to using a stool to get above the bar and lowering myself as slowly as possible.
Eventually, with practice, I could start holding myself in place with arms bent, then finally start moving upward.
It was a journey, but I'm glad I did it!