You can surely do this. However, you need to make sure that both the computers have the exact model and with exactly the same devices installed. If this is true, only then you can create a recovery drive on one computer and use it on another. Otherwise, you will get an error.