Depends on what level of macro you want, but with modern phones you can get pretty close, usually with the wide angle lens.
On iPhones: https://support.apple.com/guide/iphone/take-macro-photos-and...
On Pixel: https://store.google.com/intl/en/ideas/articles/pixel-macro-...
I'd recommend playing around with it, it's a lot of fun!
Had a quick play with my iPhone 15. It doesn't give the sort of magnification you would need for insect close-ups. I will stick with my Nikon DSLR + 100mm macro lens!