Icons can be prepared from pretty much any raster image and JPEG is actually one of the typical format for this. You just have to use some of the dedicated icon preparation software for this, but many graphics editors are up for this task as well. As for jfif to ico conversion, this is just variant of jpg to ico conversion, as tools that support JPEG should support JFIF by default as well.
Updated: January 25, 2023