Can Trump withdraw from NATO?

Federal law says the president can’t pull out of NATO by executive order; he needs congressional approval.