It depends on the aircraft.
Most of the command airliners have plug-type doors which can not be opened when the aircraft is pressurized. Other airliners don't have plug-type doors so opening would be possible, though difficult, when the airplane is pressurized.