Yes, but that's only because you used a gateway url so it's no different from a normal image server. I doubt it would work with a real IPFS url