Yes indeed, but if we can see in 3D that it is a pyramid by rotating or walking around or multiple angles or lighting and shadows, than it is ok and you do not need to avoid that sometimes it can look like a triangle from a certain angle. Only if it always looks like a triangle and never can be seen as a real pyramid it is not allowed.