You will still gain size and strength without training, but obviously training produces much better results.
https://pubmed.ncbi.nlm.nih.gov/8637535/