You'd be playing the root of the chord, which will almost always sound good. You can play just about any note against a chord though and make it sounds good if it's done in the right context, which is how interesting music is often made. Sticking to the root is necessary in many circumstances, and can be boring in others.