Yes.but it can be valid if we show that A is invertible.
There was another part of this problem,but it was about BA=I,The reference book solved it like the way I've written above.
But It was easier:_
To show that A is invertible: We can show that AX=0, have only the trivial solution:_
So...