Yes.
On the switch, define the ports that need to be on VLAN2 as "access ports".
VLAN2, Untagged, PVID2
Then use a single cable from your edgerouter to any one of those ports.
Make sure that no other (V)LANs are assigned to that particular port on the EdgeRouter.