Hi there. Not really. Xd is for designing the UX, interactions and visuals, and not for building working websites or apps. You can create desktop and mobile prototypes separately, but you can't smoothly transition between them, because prototypes don't work the same way as websites in the browser.
There are some plugins that can export HTML / CSS from your prototype, but the results are not really usable in most cases.
The best workflow is to design and experiment in Xd, where you can make layout changes quickly based on feedback. When you're happy with how everything looks, code manually in HTML / CSS / JS using the variables, values and assets from your design in Xd, or give the prototypes to a front-end developer.