Yes, the pilot of an aircraft has full control over the aircraft pressurization systems. This could be a suicidal attempt; as the cabin pressure falls, oxygen masks are deployed immediately, the oxygen supply for passengers is only for 10 minutes. Pilots use these 10 minutes to decent aircraft at the minimum altitude of 10,000 feet where natural aspiration is supported.