Yes. They will also attach to the outer diameter. BTW, what are you building? My preferred angular sensor is the TLE5010. Have a look at this thread.