Yes, it's called vandalism, especially if a person drives over that glass and it punctures their tires. The question you need to ask yourself is this: would you want someone to do that to you? Think about the immature stuff you do before you do them because they could have far more consequences than you anticipated.