Yes, you can. Normally we recommend retaining compounds like LOCTITE 638 for such applications, but threadlockers and retaining compounds both are same in terms of chemistry i.e. they are anaerobics. Inversely, you can use retaining compounds to lock threaded assemblies but the locking would then be permanent.