Yep, it's pretty straightforward.
The easiest if you have enough land is to hire a bulldozer to dig a stock tank and let the rainwater keep in full (hint: if you have very porous soil you might have to line it with either a tank liner or fine drilling mud to seal it). If you don't have the area, simply guttering the barn and/or house and letting the water collect in a cistern works just fine as well.
