It is technically possible, but I’m not sure it’s something I’d want to rely on. As an example of how to do it, the Spotify link https://open.spotify.com/track/39zWYYZStDgWi32sOU9AX4?si=BLFB8HxuQNC-OaHtwD_E4A can be converted to an iframe by adding /embed to the link’s path and then using that URL as the iframe’s src:
<iframe src="https://open.spotify.com/embed/track/39zWYYZStDgWi32sOU9AX4?si=BLFB8HxuQNC-OaHtwD_E4A"></iframe>