No, it is not compulsory. The admission exam used to select students for B.Tech programmes at various NITs and IIITs across India is called JEE Mains. You are eligible to participate in JEE Advanced if you pass JEE Mains.