Can i create a function inside of void setup()? Can i create a function inside of void setup() 
to recall in loop() function
No. You do not create functions within functions.

You can create a function, and then call it both from setup() and loop() if you so wish.