Obedience follows salvation; obedience does not grant salvation.
Unless you’re saying that in accepting the gospel and doctrine of grace, putting our faith in Christ we are obeying, which in a sense is true.
However, this does not appear to be the meaning you were -or ever have- attempting to convey, since you’ve said that obedience means following the law.