Can a foul-mouthed parrot be a witness in a murder trial?

Can a foul-mouthed parrot be a witness in a murder trial?

Parrot says ‘don’t f-ing shoot’