@Johnnycheng6 wrote:
Can I do a 1031 exchange with a property just bought for investment?
Not after you sold the property and received the proceeds.
You would have needed to have set up the exchange (almost certainly with the services of a qualified intermediary) in advance so that you would not be in actual or constructive receipt of the proceeds from the sale.
See https://www.irs.gov/businesses/small-businesses-self-employed/like-kind-exchanges-real-estate-tax-ti...
Note that if you sold an interest in your LLC, Section 1031 exchanges are now limited to real property (which an interest in an LLC is not).