That is what vaccines are for. All of the upsides of immune system training with none of the downsides of having to be sick first (also, see “the immune system is not a muscle” article other people posted: immune systems do not appear to generate cross-virus benefits, so there’d be no expected effect on common cold susceptibility)