For most beginner broker accounts, you can sell a stock and buy the same or another stock the same day, but you cannot buy a stock and sell the same stock the same day. You need to hold any stock you buy over night and sell the following day. Best to call your broker and ask the specifics for your account.