Yes
For example:
function a=myfunction(A, B, c, d)
In fact, here A, B, c, and d can be matrices or ordinary variables. As long as you know who is the matrix and who is the ordinary variable when defining the function, and you can directly perform different operations, you will be fine.