Probably. Whether it is going to be useful or practical, depends among other considerations on what focal length it has. If long, the likely alternative, you might need added extension to make the lens focus to anything closer than infinity.
You don't need to know the exact focal length, merely what the distance will be from the rear end of the lens to the sensor/film plane. Easily observed by projecting an image of the sun or other bright objects onto a sheet of paper and moving the lens back and forth to focus the test target seen on the paper sheet. Be aware that the sun might set fire to the paper when you nail the infinity focus
