It’s best to keep plants away from direct contact with electronic devices as they may obstruct ventilation. However, positioning them a few feet away shouldn’t pose any issues.