Kind of hard to understand what you're describing, but if what you're saying is that-
You're trying to install a switch that requires a neutral wire in a box without a neutral, and using a ground wire instead
-that is bad, and you should not do it.
Yes, it will function. However, you're electrifying your ground circuit, which is not supposed to happen. The ground and neutral busses are essentially the same thing at your main panel so yes you can do what you're doing, but it's not good. If there was a GFCI in this circuit it would trip, if that tells you anything.
If I understand your post correctly.
Edit: are you also saying you might use a different circuit's neutral? In theory you can do this, but it depends on where the breakers are in your panel. They need to be on different phases, and they need to have a mechanism to trip both at the same time. Again, if I understand you correctly.
You sound like you need to call and have an electrician come out, because you're just capable enough with what you're doing to be really dangerous.