I recommend against it, although it is a serious step up from the 4. Easier to use an old desktop/laptop, a pi just doesn’t have the same kind of reliability and resistance to things like boot corruption or power issues.
I’m biased though:
nostr:note1tmtj7xcuxgz0guf3g5vafp2nc4g8hwqmm963vcmsjuehktnzghdstzf6dq