Not exactly accurate.Actually not true. Shaolin arts began as breathing exercises and yoga, which evolved into fighgting. Those fighting arts were used as a defense only system from the monks and killing was only the last resort.
My understanding is that the temples were sanctuaries for lots of people... including soldiers and generals who had fallen out of favor. By going to the monastery or temple, they stepped off the public stage... Thus, there were often lots of people there with real fighting experience and knowledge. If there's any truth to the myth about breathing exercises being introduced with Buddhism, they probably were more of a yoga than martial arts, and may have contributed to the internal side of the Chinese martial arts.