I don’t think that is possible.
You could set the length of a project, which will then apply to all the tracks.
You could set the cycle length as well.
Perhaps explaining your need to set one particular track length could help finding a viable solution to such purpose.
LogicPro 10.7.1, MainStage 3.5.4
MBPro 17", Core2Duo, 8G, OSX 10.12.6
MacPro, Xeon 6Cores, 64GB, OSX 10.15.7
ULN8, MOTU MIDI TP-AV, C4, MCU Pro, KorgNano, Novation SLMkII
AAS, NI, Celemony, Spectrasonics, Korg, Arturia, etc...
PC, iPadPro 5th gen 12.9”(Duet D., V-Control & LogicRemote), AtariST(Notator SL), Several vintage gear