No, definitely not. There is already too much of a tendency these days to treat parenting as a kind of rocket science, when it certainly is not.
However, I would suggest that there should be more basic information available in all hospital delivery rooms about safe options for the child (for people who were not happy about having a child or who were trying to hide the fact they were pregnant). Like, how to arrange for an adoption, etc, if the person was not planning/wanting the child. To keep the child safe, I mean. Not saying hospitals should be forcing this on people at all, just that the info should be laid out there (e.g. in a booklet) for people who might need it but are scared to ask.
But to answer the question, definitely no to any form of mandatory training, regardless of circumstance.