Is play used to mean the same thing in the next two sentences?

We saw a two-act play in the theatre.

He wrote several plays but only one was produced on Broadway.
the same meaning