I've done this! You can also use a popcorn air popper, provided it is the kind with vents on the sides of the container vs a grill at the bottom.
I got started based on this site: https://library.sweetmarias.com/air-popcorn-popper-method-for-home-coffee-roasting/