Can I put a pull up bar slightly above my doorway in between two walls?

I want to do vertical hangs, but I have nothing to hang on. I'm gonna buy a doorway pull up bar, and I was wondering if I could put it in between the two walls by my doorway instead to make the bar 7 ft tall. The walls are a little under 36 inches apart.
3 answers 3