yes, definitely. and sometimes you can do it even better, of course with plenty of practice and experience. plus knowing the characteristics of coffee beans because some beans are softer than others, some beans are smaller, bigger. You need to study about the bean before roasting for even setting temperatures.
and most important thing is that when you have the green beans to roast, please make it sure to inspect them and sort out the bad ones, broken ones, sour& blighted ones, black beans, ...etc as much as you can. you need to take them out before you roast. if not, they will ruin the cup profile entirely. SPECIALLY QUAKERS AND SOURS.
supposedly, in export standard green beans, there shouldn't be that many, but I have seen otherwise.
on the contrary, many unqualified roasters roast bean without going thru this process (perhaps, no time, no man power), so from my experiences, I get a lot of bad batches of roasted coffees.
So, proper investigation and study about the beans, sorting, and attention to details..etc will guarantee better roasted beans than most of roasters.
Also, green bean pricing is less than half of roasted bean pricing.