Is the word "appear" used in the same way in the following two sentences?

He had to appear in court last month.

A ship appeared.
different meanings