No, MPEG and MP4 formats are not the same. However, YouTube accepts both video formats.
MPEG or more specifically MPEG-4 is designed for low bandwidth purposes. It compresses video and audio together to create a small video file format.
MP4, on the other hand, contains both the video and audio files and works as a container rather than a compressor.