It depends on the variation you decide to do.
The most common variation is chest dips, but tricep dips which require a slight alteration in form can be very effective for building triceps.
Whichever type of dips you do, though, you should be able to target both muscle groups.