Yes, but I would recommend to use the latest release (1.9.0) or the master instead of 1.8.1 (or do you have a specific reason to stick to this older version?)
It seems you are not in the pytorch folder so cd pytorch after executing git clone.