If it's the right length, then it'll work on a YJ with SYE.  If you havn't got your SYE in yet, it's going to be hard to figure out what length you need.  Best bet is to get a cherokee front shaft and have it shortened by a driveshaft shop (About $60) once you know your length.