Will the guardrail outside the yard surround my yard?

All right.

It's good. Generally, some barbed wire can be used as the fence of the courtyard wall. Barbed wire is usually something you don't need to go in at first. Keep them out and you can't get in, which protects the things in the house.