I suppose it's possible. Whether it's a good choice of tool is another issue. Are you talking about converting a song from a regular music CD, or somehow creating a MP3 file from some sort of musical notation input or such? In either case, you would need a solid understanding of the MP3 compression algorithm, as well as its file format.