No, only HTML snippits may be used to play youtube video's etc. See for the widget here: https://appstore.home.mendix.com/link/app/56/Mendix/HTML/-JavaScript-Snippet
You need to use the Mendix input elements and use CSS to style the page.
Regards,
Ronald