By the way is it the same with the Rx 580 8gb Nitro+? and if it is which do you suggest.Yes it is. Just make sure to update your system BIOS, if need be, and get a compatible PSU for this GPU as well.
I am gonna buy a new motherboard with an i5 9400F soon.Okay. That's n entry-level dual core CPU. You might be needing an upgrade, should you plan to buy the RX 580 or any other video card, to avoid bottleneck as well.
But the term "bottleneck" is subjective, and it depends on other factors as well (game being played, screen resolution etc.), but that i3 is not a very powerful CPU.