Yes, provided that there is no overlap in the required courses, since a course cannot be counted twice.