If you are joining a team, most likely, there was someone before you in the same position.

As you are planning to join the team, do take notice of how the person before you was treated or is being treated. That is how you will be treated during your notice period.

Now, it may be possible that the person was a complete no-no and that is why the change, however, it is also most likely possible that the culture of the company speaks out loud and clear through how they treat the exiting colleague.

Your observational skills here will either make the next few years into half or an entire decade, or shrink them to just a few months.