Its a piece of fiction.
No, Shakespeare's works are not fictions, they are genial studies of human nature.