I would not build a deck that way for a couple of reasons.
First, decks should have some space between the boards for drainage. Otherwise water pools, accelerates rotting of the wood and makes the deck slippery.
Second is expansion. Given that outdoor boards are alternately soaked and baked, there is significant shrinking and expanding of the boards (another reason for gaps). That will be most pronounced in the width of the board versus the thickness. As the board expands it pulls out the nail. If the nail is pounded into the edge it will pull out more since there is more expansion in that direction compared to a vertical nail.
Screws don't pull out at all, and that's their principle advantage and why I always screw down deckboards. Nails are preferred by many, but I haven't seen them nailed into the edge, and I think it's for good reason.
Edit: if it's a composite as others have suggested, everything I just wrote is a waste of pixels. Unread it.
Edit 2: Turns out that this product is PVC plastic, and uses a HIDfast hidden fastening system Fastener System, Azek decking product installation videos. The product is also tongue and groove. Sounds like the contractor did a good job.