No. transfer order moves inventory around your warehouse.
If source location does not have material or target location is not allowed to have that material you cant create TO. You better try to create TO interactively and its not advisable to go pass errors.