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

A rifle action.

The Union action of emancipating Southern slaves.
different meanings