Nintendo switch - no display with dock

So are the pins underneath what allow you to make a connection with the dock?

The switch charges with a normal plug and also the dock recognises the switch is it there and the green light will display.

Kind of thought if the USB C plug wasn’t in properly I would have issues charging.