Certainly the 2 metal bikes I bought new or nearly new last year had stamped serial numbers. Carbon fibre can't be stamped but with enough effort some form of moulded serial number could probably be done. There's no point really though, as modern laminated labels can be individually printed and last the lifetime of the frame even outdoors. The only thing they can't really deal with is severe abrasion, and neither can carbon fibre.