5 and more solutions :
scroll to conclusion first!
1st solution
→you can have light there but lamp which have switch on itself,old fashioned corded switch(1st solution),or
2ndsolution
is remote switch built in bulb (SMART bulbs) ,3rd solution is that remote switch is outside of bulb regardless if that is IR sensor,Bluetooth,Wifi,Radio signal or even acoustic switch.(so called SMART lamp,as described from previous poster,are remote controlled and have remote switch inside,but there EXIST MORE answers/solutions!)
3rd solution
→ is to pass one more wire from 1st box to switch
4th solution
→ is based on 3rd one,works same,but NO NEED EXTRA WIRE,as use grounding wire from 1st and 2nd box for return wire..but then outlet will not have grounding..so can be changed for that type,or used same but with knowledge that is safe only for devices which no need grounding for safety.(you know you will remove grounding wire from back side of outlet,and re-purpose it),really i recommend to change type of outlet to psychically prevent misuse..
5th solution is old fashion sensor mostly used on projectors,with or without bulb fixture.well in this case can be brought just that part ,standalone version..And this part can be used as siple arlarm system or part of alarm system..
all this solutions are safe if are done properly
and in some rare case in building where for grounding is used neutral wire there is one more solution if not going to use some sort of remote operated switch inside/outside of bulb.
Personally 1st solution with cordswitch is cheapest in long run(also safe,practical,fast and easy..and i will recommend it to all, for do it yourself people well they know that remote switch and signal receiver can be built for cheap), and ground wire solution is also simple and cheap but you maybe need to hire/pay professional electrician if you dont understand what i wrote..
People down voting,as are not capable to understand/either do it,without some sort of ready to buy SMART lamp with remote switch inside.
Conclusion : You can do it,only depends what solution you prefer,or level of DIY in yourself ,as there are solutions with more DIY involved,and almost ready solution,and even ready so called SMART solution()..like "SMART" bulb ,and for that already you have all. Just pass wires to position ,of bulb holder,and buy SMART bulb,but read further...
Economically if you want to have remote operating light cheaper in long run is to built in that your wire connection junction box remote receiver(or outside),then to buy with every exchange of bulb receiver and emitter ..asSMART bulb have that all in one,package and price is higher..
Maybe lamp with external sensor is all what you need..(SMART bulbs/lamps have built it inside),i want to say make remote switch to be outside of lamp have advantage,-its hidden,and not to be payed every time when you replacing "SMART"bulb..
With that path in future you will be buying just bulbs,not paying higher price of smart bulb every time when you need to replace bulb.Remote or not remote controlled that solutions without buying every time SMART bulb/lamp i call really SMART in long run.
Just to add,remote controlled bulb,you can control with fixed wireless push button anywhere mounted,or with smartphone,or with garage door opener,so choose what fit you best!
All those solutions are SMART...and even if "look like" that you "dont have enough wires", yes, you can use even HARDWIRED control if you are SMART.