Can i ask to raise initial offering by a company if i got another better offer from some other one

Can i ask for raise in intial offering after i got another offer with better compensation from another company

Hi. So i am new to the job world, also the oldest sibling. I went for bunch of interviews and got selected for 2 of them. The first one offered me around Xk (in the interview also i said my exp is X-foolish of me ik) but since i was desperately in need of job i accepted it. They asked me if i could come for trial period for 7 days, i agreed-they sent me a informal job offer later. 2 days after that I got another offer for x+5k from another company . Will it be ideal if i ask the first company to match the offer or atleast give more than x+5 given ive accepted informal offer and myself said xK. I really like the first company, the job role and it is easy for me to travel, that's why i wanted to not go for the 2nd company. If you all suggest to talk it out to them, how should i go about it. Please help.