is social democracy considered part of socialism?

as it is sort of a compromise between capitalists and socialists