Upvote:0
Yes you can.
A Type-D visa allows for the same provisions as a normal Schengen visa; that is you can visit the Schengen member states (and you are still bound to the 90/180 rule, along with other restrictions such as having enough money to support yourself, etc.)
Stay safe and enjoy your trip.