I won't delve into whether or not it's possible, because reviewers discrediting it based on this aspect is ridiculous (it's a TV show where anything can happen).
When Hutch decides to bring his pet goat uptown because the blasting on the underpass, which mayor Stoner is having built to bring the highway closer to his brother's filling station, makes him nervous.
Hutch ties him to a bench while he runs errands. Jimmy, his goat, gets loose and wanders around town, and, in the process, eats dynamite... Lots of it (because he's always had a healthy appetite).
Once he's finally found, Andy and Barney try to keep him from exploding.
There are some hilarious one-liners... Like when Andy asks Otis if he's seen a big Billy goat he responds "Oh no... But I will" (because he just bought some liquor).
Barney yelling "There he goes!" when Andy is telling him to just stay calm is hilarious.
And the end, when the mayor is giving a tribute to Andy and Barney because he thinks a blast he just heard was the goat going off, with Andy and Barney with him. Hutch calls Barney "the little feller".