No it cannot. No device can do OTG via Type-A sockets, they are host-only.
For the sake of completeness, as @jdonald mentioned in a comment, RPi model A/A+ (the ones without the USB hub, just like Zero) can be configured into device mode and connected to a USB host using a non-standard cable. However, this is excluded for any model B (including RPi 4), as there is a hub in the way.