Hello Joaquín,
shouldn't be a problem, but only in the context of a native (iOS and Android) and HTML output, as most EPUB3 readers do not support any remote content to be rendered, i.e. not just Spotify but also any Youtube video, a map widget - any widget that requires a remote connection will not work in the reader.