Google does not prohibit you from writing or publishing content about diverse niches. However, having or posting content that is not remotely connected to your expert niche could affect your rankings as per the new update. Hence, it is best not to stray too far away from your slot as it can affect your SERP rankings.