I'm assuming you mean this YouTube plugin by NoahY? That plugin uses a layer, which runs after the Markdown has converted the post. So the Markdown editor will strip out all embed tags that the user put in, then the YouTube plugin will convert any links to use the appropriate code.
So it is perfectly safe.
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.