RAW files are a much broader category of image file formats, while NEF is a specific type of RAW file format created by Nikon cameras. Though similar in many ways, these two types of files are not interchangeable and should not be used interchangeably.