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

He slammed the door as he left.

He knocked on the door.
the same meaning