No problem there, they will fit on the studs, it's down to how secure they are, what part of the hub is taking the weight and how long the studs are.
I doubt alloys are safe, but steel may be, the nut should screw fully onto the stud so that the stud emerges from the nut.