More than likely, the data is intact on the hard drive or solid state drive -- you will need to purchase a cable or enclosure for whatever type of drive you have, remove the drive from the system and connect it to a working system to recover your data.  
I have a Dell XPS 15, built it 2017   Today I was working on it and heard a crackle in my laptop, it then smelled like something burning.  Then the screen it turned itself off. I unplugged it and after few minutes tried to turn it back on. It’s boots up then right after I log in and the main screen comes on it turns itself off. The PC was under no heavy load neither GPU or CPU. I flipped it over and opened the back cover to check for any visual signs of burnt elements and saw a burnt part, see pics. What is this part? Can it be replaced or fixed? Thanks      
Dell XPS 15 burnt!!