…injured something in my lower body?
Yes.
…have an explicit restriction from my doctor?
Yes.
…don’t have legs?
Yes.
…<any other reason>?
No.
But I cycle / run / play soccer?
No.
Ultimately, you are an adult – You can do whatever you want, and you don’t need r/Fitness‘s permission. But skipping strength training for the largest group of muscles in your body is not a good idea, and endurance based exercises are not an adequate substitute for resistance training.