As accent colors, sure. But in an office setting as the primary colors you'll be looking at all day? Not so pretty.
They are almost opposites or complementary (the complement of yellow is actually violet, not purple, but purple is close enough), so just like blue and orange.
Complementary colors used in combination give the highest contrast.