In general, I would say yes. I made a stiffness model a few times in mathcad and made an element stiffness matrix function that added my element to the global matrix. Then I had only to call the function, 'm' times and specify E, I, Xo, x1, and A. The routine automatically computed the member stiffness matrix and added these values in their proper row/column to the global matrix.
In more basic routines, a matrix may be populated with a range variable routine.