Can i use arduino code, without using arduino board but just using MCU included
Yes, you can. Once you have a .hex file for a specific MCU and environment you can use a programmer to upload it to a discrete MCU.