Methotrexate side effects

Have recently been prescribed methotrexate tablets for RA. I’m really worried to take them as they work by dampening the immune system. Would that not leave my immune system weak to fight infections ?