Yes,
You can input it like
a b c x
d e f y
g h i z
0 0 0 1
or
a d g 0
b e h 0
c f i 0
x y z 1
which one doesn't matter as long you keep the same layout for all calculations.
But this only gives you an inverse matrix, you still have to multiple the 4x4 matrices of the other lines with the obtained inverse one. So writing a script / small app for it is more efficient.
You can input it like
a b c x
d e f y
g h i z
0 0 0 1
or
a d g 0
b e h 0
c f i 0
x y z 1
which one doesn't matter as long you keep the same layout for all calculations.
But this only gives you an inverse matrix, you still have to multiple the 4x4 matrices of the other lines with the obtained inverse one. So writing a script / small app for it is more efficient.