Yes for sure, but you have to multiply your element factor (your microstrip's radiation pattern) to the final calculated array factor.
If the mutual coupling between elements are not significant, the (AF.EF) will give you a proper approximation of the final radiation pattern of your microstrip array.
How are you? I really liked your program of 3D Array Factor of a 4x4 planar array antenna and I have some questions.
I'm a newbi to antenna design and I'm not sure if this program applies on rectangular microstrip antennas? can you please let me know if it does!