Smoking is harmful to health, but secondhand smoke is more harmful to health. Secondhand smoke contains a lot of carcinogens. They are inhaled and accumulated in the body with smoke, which gradually increases the risk of various cancers.

Can you smoke secondhand smoke from e-cigarettes?
First look at the definition of second-hand smoke: second-hand smoke, also known as passive smoking, environmental tobacco smoke, refers to the mixed smoke formed by the burning end of cigarettes or other tobacco products and the tobacco smoke exhaled by the smoker.
Simplify the next point: tobacco smoke
So it can be said clearly that e-cigarettes are not second-hand smoke. Because the ingredients of e-cigarettes are nicotine, propylene glycol, glycerin, flavor, and no tobacco. (By the way, nicotine is ubiquitous in Solanaceae, not unique to tobacco.)
Of course, the e-cigarette smoke contains nicotine, a small amount of formaldehyde, acetaldehyde and acrolein (it is very small compared to cigarettes) and other chemicals. However, the harm of second-hand smoke is far less than the second-hand smoke of cigarettes, so there is no need to worry too much.
A 2018 report from the Department of Public Health of the United Kingdom found that smoking e-cigarettes has not been found to cause health hazards to the people around them. The main components of e-cigarette oil are nicotine, propylene glycol and glycerin, as well as various flavorings. Unlike cigarettes, e-cigarettes do not emit sidestream smoke into the atmosphere, but only release aerosols.
At last
Judging from the above content, electronic cigarettes do not have the problem of second-hand smoke, but there are still nicotine components, aerosols and aldehydes, but the content is relatively small, so don’t be afraid.