Yes. Shakespeare's company, the Lord Chamberlain's Men, performed at court multiple times. A documented instance: December 26, 1594, The Comedy of Errors at Greenwich Palace. Shakespeare likely acted in minor roles (tradition suggests he played Adam in As You Like It, the Ghost in Hamlet). Court performances were prestigious and financially vital for the company.
Elizabeth I was a noted patron of the arts; her patronage legitimized the profession and protected players from puritanical suppression. Shakespeare's company became the King's Men under James I in 1603, continuing the royal connection. While no record describes Elizabeth's personal reaction to Shakespeare's acting, the fact of court performance is historically secure.