No, Net-A repeats the block shown multiple time by brute force, i.e., by addtional similar code blocks.  Very cumbersome and very tedious to have to maintain separate models for different numbers of layers.  A prototype, really.
Net-B has identical initial parameters (I’ve checked, manually) but loops over the layers.  (There’s no obvious reason those for loops couldn’t be combined, either.)
(Final layer gets separate treatment in both, which is why it isn’t in the loop)