My point is can we use Nodemcu instead of generic esp8266 wifi module?

Hey…hello friends , I am new to this IOT platform and currently I am working on a basic project…in that I need to use nodemcu as a wifi module with the Arduino UNO board…so please help me…!!
Can we use NodeMCU for just wifi module in arduino UNO board…??