At my first job coding, I was required to be in the office five days a week, put in at least eight ours a day, and had to be there between 9-3. That means I could come in at 6a and leave at 3p, or come in at 9a and leave at 6p, or whatever.
My second job initially was the same. Then they allowed a few "flex time options". You could work 4 ten-hour days, and have one day off a week, or work 9 nine-hour days, and have an extra day off every other week. Then they revoked that policy. They then allowed you to work from home (WFH) one or two days a week.
My third job was similar - WFH one or two days a week, but mostly going into the office. Then, once COVID hit, everyone (except a few key positions) had 100% WFH for close to two years. They then started letting people come back if they wanted, with limits on how many, etc. Now we are at "come in at least 2 days a week", but that is not strictly enforced.
Some companies will let you work 100% remote, full time. Some will let you WFH most of the time, but come in once a month for meetings or whatever. And some will still require you to come into the office full time.
This is one of the factors you will have to consider when you start looking for work. It is an important question to ask at the interview. Then, consider it along with all the other benefits/restrictions and decide if it's worth it. For example, if the company makes you come in every day, but pays you $10k more/year, is the money worth it over the company that pays 10k less but lets you WFH 4 days a week?