Another way to say "You can use a barn to keep animals" is "Animals can be kept in a barn"