It is possible to build very complex layouts if you have enough track. (Available at a nominal fee from yours truly.
) Here are two pictures of a test track I was running on my new land in Lexicolo, “Run Free”.

A very complex track layout

Complex layout, plan view
You’ll notice that I have two trams running on this layout at the same time. That’s what I was testing. More important to you, perhaps, is to understand what happens if you merge a few track pieces together. Let’s look at a detailed view. I’ll color the tracks to make it clear which is which:

A closeup of a track merge
So here we see a red curve, which is actually touching a segment gap in the big ring. Coming off the red curve is a yellow curve going left, and a blue straight. The yellow and blue segments are both aligned on the end of the red curve. (If you try this, you may want to tweak the z coordinates of your tracks up or down by .001, to get the best look.)
But what happens when your vehicle arrives at a wye? As your vehicle moves, it is following the track segments one after another. When it enters a given segment, it looks to see what segment follows at the end of the current one. In this case, there are two or more, so it picks one randomly.
On a complex path like the one in the picture, the result is that the tram wanders around the layout, following no particular pattern. It’s kind of fun
Building track layouts like these involves a lot of editing, especially as the angles get strange. I haven’t found any really easy way to build the wilder shapes.
Remember, always, that track alignment is important. Close joins, with no overlap, work best.