Can a bad function on a theme break a whole network?

I've started operating a Multisite network to better host all my client sites.

As I start to work on a custom child theme, I'm wondering:

Could a poorly written function on a theme enabled for only one site cause issues throughout an entire network that is otherwise not using that theme?

I guess the same question could be asked about plugins.

My guess is yes... but what do you think?