Yes.
The Mid-2015 MacBook Pro was sold new by Apple for more than 3 years - May 2015 to July 2018 - so the June 2017 date on the original SSD is certainly within that time - and also probably means that your 2015 was manufactured/sold in mid to late 2017