If you spend 9 months learning to code, you get a junior engineer (at best).
If you sepnd 9 months getting a technical co-founder, you likely get a seasoned engineer + thought partner for all decisions going forward.
One is vastly more valuable than the other.