No, a squad can either receive, or not receive attachments. There are no "selective" attachments.
BUT there is a SCaR workaround I created. You can still attach all commanders to all squads that can receive attachments (of course), but the code searches for all attached squads and detaches those you deem not "compatible", and it also gives a warning.
Look into Dark Angles or Ultramarines (the apothecaries "cannot" attach to the Command Squads).Go to the full post