Cable extensions are safe only if you buy the right ones for your devices. Compatibility of the cords is very important to avoid any electric hazards. Moreover, you also need to maintain them regularly. With continuous use over time, an extension can easily deteriorate. This creates potentially dangerous electric shock or fire hazard.