How to set RB to work as router and public switch at one time

Normally I connect RB (router to public network) to switch (which switches public network to other PCs) Is it possible to set RB962UiGS-5HacT2HnT (hAP ac) to take work of this switch?:
Switch:
2 cables to other PCs
1 cable to ISP
1 cable to RB’s WAN

RB:
1 cable to Switch (NAT + router)
2 cables to local PC behind this NAT and router

In other words is it possible to set some ports to be in inner network and other ports to behave as switch on outer network?
Thanks in advance.