Unfortunately, the answer is yes. Slavery was an established institution pre-Islam and Islam did not abolish it. Instead Sharia law allows for it and Islamic history is full of examples of enslavement of men and women as a result of war. The prophet did improve the treatment of slaves, from the prestige given to Hazrat Bilal to adopting a former slave as a son and marrying his last wife who was brought from Egypt as a slave. However, his adopted son never got the same respect that a real son would have (was never considered for Khalifa) and his last wife remained housed outside of the city instead of having her living quarters where other wives lived in the city.