I’ve done it before, it takes time due to fedexing paperwork but you can do it.
My mother co-signed on a loan when I was 19 for my Firebird; she lives in Milwaukee, WI, and I was living in Rochester. There was no problems. Just be sure to keep your end of the deal… nothing more bullshit then screwing someone who co-signed your ass.