No.
If you used 300 sq ft of home office space for only 3 months in 2022, you have to calculate the average square footage for the year. In your case: 300 + 300 + 300 = 900 divided by 12 equals 75. And your home office deduction is 75 sq ft x $5 = $375.
Please read this IRS FAQ for more information.