Yes. Holders of
- a Schengen visa (text on the visa reads "valid for Schengen states"),
- a residence permit of a member state or
- a national visa of a member state
can also travel to Germany for up to 90 days in any period of 180 days.
The Schengen visa should, however, have been issued by a mission of the country which is the main destination. The country of entry and departure is not the determining factor.