Controlling a relay using esp8266 and android phone

is it possible to control a relay using esp8266 and android phone without connecting to internet (just like a bluetooth controlled relay using arduino and android smartphone) and any useful links