score:1
Yes. Since your D visa is still valid, you can use it to enter the Schengen area when you return from your trip. If you cannot return until after it expires, though, things get complicated; in that case you would probably need to apply for a new visa while you are in your home country.