It depends on the circumstances, but it is likely to be valid to always put all of the joins in. If there are tables that aren't used, there is a good chance the joins will be ignored.

If not, adding joins as needed isn't a big deal - just use the same kind of method for the From clause that I showed above for the Where clause.