Is it true that the cold and flu are most contagious before the onset of symptoms?

True. Most viral infections are contagious beginning a day or so before the onset of symptoms.
No. Since colds and the flu are generally spread through respiratory droplets (i.e. Coughing and sneezing), people are most contagious when they appear sick.