Yes!! This is my preferred way to enable network printing and scanning. I've done this for about 5 years.
I've always hated having printers on my network, because vendor software is absolutely terrible. Completely insecure and open to who-knows-what through automatic updates.
I use a raspberry Pi and it works great even for non-technical family members. Printing from your phone is also really nice.
The functionality is about the same as the vendor printers. But the peace of mind is amazing. 100% assurance that there's nothing weird going on, it's secure, and there's no account and stupid cloud.