The question is really in the title with this one, I just need a little bit of clarity, consider beta-minus decay, which is an interaction governed by the weak nuclear force, $$n\to p^+ +e^- +\bar v_e$$ Here, the corresponding Feymann Diagram is
which clearly indicates the $W^-$boson as the exchange particle, acting as proof that the interaction occurs due to the weak nuclear force. The question is, if neutron and protons are subject to the strong nuclear force, how can they be involved in weak interactions?